package com.lyncs.ods.req;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author alex
 * @date 2022/1/30 01:35
 * @description
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SaveCompanyReq {

    @Length(max = 64, message = " of length must between 1 and 64")
    private String name;

    @NotNull
    @Length(max = 15, message = " of length must between 1 and 15")
    private String shortName;

    @ApiModelProperty(value = "所属行业ID")
    private Long industry;

    @ApiModelProperty(value = "所在国家ID")
    @NotNull
    private Long country;

    @ApiModelProperty(value = "员工规模")
    private String scale;

    @ApiModelProperty(value = "企业标语")
    private String slogan;

    //@Length(min = 20, max = 256, message = " of length must between 20 and 256")
    @ApiModelProperty("企业logo")
    private String avatarUrl;

    @ApiModelProperty("企业背景图")
    private String backgroundImg;
}
